<?php
declare (strict_types=1);

namespace app\api\controller;

use app\common\tool\Result;
use think\Response;
use app\common\model\ProductCate as ProductCateModel;

class ProductCate extends Base
{
    public function index($pid = 0): Response
    {
        return Result::success('success', ProductCateModel::getCate($pid));
    }
}